package com.lx.person.entity;

/**
 * @author 柳新宽
 * @create 2022-03-21  10:27
 * @describe
 */
public class DoorKeeper extends Person{
    //属性
    private String dept;
    private double salary;


    @Override
    public void showMe() {
        System.out.println("这是一名保安,身份证号为："+getCardId()+";姓名为："+getName()+";性别为："+getGender()
                +";籍贯为："+getHomeTown()+";工作地点："+getDept()+";薪资为："+getSalary());

    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
